import permissionCode from './permissionCode'

const install = function(Vue) {
  Vue.directive('permissionCode', permissionCode)
}

if (window.Vue) {
  window['permissionCode'] = permissionCode
  Vue.use(install); // eslint-disable-line
}

permissionCode.install = install
export default permissionCode
